package ydn.edu.hqu.cst.myexperiment_7;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button bn1 =findViewById(R.id.button1);
        bn1.setOnClickListener(new View.OnClickListener(){
            @Override
            public  void onClick(View v){
                Intent j = new Intent(MainActivity.this,AccelSimulator.class);
                startActivity(j);
            }
        });

        Button bn2 =findViewById(R.id.button2);
        bn2.setOnClickListener(new View.OnClickListener(){
            @Override
            public  void onClick(View v){
                Intent j = new Intent(MainActivity.this,SensorSimulator.class);
                startActivity(j);
            }
        });

        Button bn3 =findViewById(R.id.button3);
        bn3.setOnClickListener(new View.OnClickListener(){
            @Override
            public  void onClick(View v){
                Intent j = new Intent(MainActivity.this,Compass.class);
                startActivity(j);
            }
        });
    }
}
